<#macro rowHeight type=1>
	<#if type == 1>
		72px
	<#elseif type == 2>
		106px
	<#elseif type == 3>
		140px
	<#elseif type == 4>
	
	<#else>
	
	</#if>
</#macro>
<#macro merchantGrid id name="" type="" required="false" width="155" disabled="true" panelHeight="'auto'" panelMaxHeight="300">
	<select id="${id}" name="${name}" class="easyui-combogrid"   
        data-options="    
            url:'${ctx}/background/merchant/grid',
		    panelWidth:320,
		    panelHeight:${panelHeight},
		    panelMaxHeight:${panelMaxHeight},
		    width:'${width}',
		    editable:false,
		    disabled:${disabled},
		    required:'${required}',
		    pagination:true,
		    pageNumber:1,
		    pageSize:20,
		    pageList:[10,20,30],
		    singleSelect:true,
		    idField:'id',    
		    textField:'name',   
		    toolbar:'#${id}_toolbar', 
		    columns:[[
                {title:'商户名称',field:'name',halign:'center',align:'left',width:280}
		    ]]   
        "></select> 
        <div id="${id}_toolbar">
        	<input id="${id}_toolbar_searchbox" class="easyui-textbox" data-options="icons:[{
                        iconCls:'icon-search',
                        handler: function(e){
                            var v = $(e.data.target).textbox('getValue');
							$('#${id}').combogrid('grid').datagrid('load',{
								name:v
							});
                        }
                    }]" style="width:150px">
        </div>
</#macro>

<#macro prizeGrid id="" name="" panelHeight="auto" multiple="false" editable="false" required="false">
	<input id="${id}" name="${name}" class="easyui-combobox" data-options="    
        width:155,
        panelHeight:'${panelHeight}',
        valueField: 'code',    
        textField: 'text',
        multiple:${multiple},  
        editable:${editable},
        required:${required},
        url: '${ctx}/background/prize/queryAll',    
        onSelect: function(rec){    
           
        },
        icons:[{
        	iconCls:'icon-clear',
        	handler:function(e){
        		$(e.data.target).combobox('clear');
        	}
        }]" /> 
</#macro>
